package com.qsl.rpc.server;

import com.qsl.rpc.entity.Person;
import com.qsl.rpc.service.IPersonService;

/**
 * @author 青石路
 * @date 2021/1/17 14:58
 */
public class PersonServiceImpl implements IPersonService {

    @Override
    public Person getPersonById(Integer id) {
        return new Person(id, "青石路", "123456", "15174480311");
    }

    @Override
    public Person getPersonByPhoneNumber(String phoneNumber) {
        return new Person(88, "青石路", "123456", phoneNumber);
    }
}
